package com.spa.application.dto.massagist;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.spa.infrastructure.common.jsonSerialize.PhoneDesensitizationSerializer;
import com.spa.infrastructure.enums.dict.order.OrderOperStatusEnum;
import com.spa.infrastructure.enums.dict.order.OrderStatusEnum;
import lombok.Data;

import java.util.Date;

@Data
@JsonInclude
public class MassagistOrderListDTO {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    private String orderCode;

    private String userName;

    @JsonSerialize(using = PhoneDesensitizationSerializer.class)
    private String phone;

    private String address;

    private OrderStatusEnum status;

    private OrderOperStatusEnum orderOperStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date appointTime;

    private String serviceName;

    private Long orderPrice;

    private String remark;

    private Long extPrice;

    private String exactLocation;

}
